﻿//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using NetCMS.DALFactory;
using NetCMS.Model;

namespace NetCMS.Content
{
    public class Arealist
    {
        private IArealist dal;
        public Arealist()
        {
            dal = NetCMS.DALFactory.DataAccess.CreateArealist();
        }
        #region arealist.aspx
        public DataTable sel_sysCity(string Cid, bool flag)
        {
            return dal.sel_sysCity(Cid,flag);
        }
        public int del_sysCity(string ID, int flag)
        {
            return dal.del_sysCity(ID,flag);
        }
        #endregion

        #region arealist_add.aspx
        public int Add(string Cid, string cityName, DateTime creatTime, int orderID)
        {
            return dal.Add(Cid, cityName, creatTime, orderID);
        }
        public DataTable sel_sysCityInfo(int flag)
        {
            return dal.sel_sysCityInfo(flag);
        }
        #endregion

        #region Arealist.cs
        public int add_sysCity(string Pid, string Cid, string cityName, DateTime creatTime, int orderID)
        {
            return dal.add_sysCity(Pid, Cid, cityName, creatTime, orderID);
        }

        public int sel_nameTF(string aName)
        {
            return dal.sel_nameTF(aName);
        }

        #endregion

        #region arealist_upc.aspx
        public int Update(string Pid, string cityName, DateTime creatTime, string cids,int OrderID)
        {
            return dal.Update(Pid, cityName, creatTime, cids, OrderID);
        }
        #endregion

        #region arealist_upp.aspx
        public int Update_sysCity(string cityName, DateTime creatTime, string Cids, int OrderID)
        {
            return dal.Update_sysCity(cityName, creatTime, Cids, OrderID);
        }
        #endregion
    }
}